package com.ddx.service;


import com.ddx.common.exception.ResultModel;
import com.ddx.pojo.Transaction;

/**
 * @author dudianbo
 * @ClassName: IAccountService
 * @Description: 基础账户原子操作
 * @date 2018/4/23
 */
public interface IAccountService {
    /**
     * 账户金额增加
     */
    void increase(Transaction transaction);

    /**
     * 账户金额减少
     */
    void reduce(Transaction transaction);

    /**
     * 账户金额冻结
     */
    void frozen(Transaction transaction);

    /**
     * 账户金额解冻
     */
    void unFrozen(Transaction transaction);

    ResultModel getAccountDetail(int userId);
}
